3.1.7 \(\int \frac {(A+B x+C x^2) (a+b x^2+c x^4)}{x^4} \, dx\)

Optimal. Leaf size=63 \[ -\frac {a C+A b}{x}-\frac {a A}{3 x^3}-\frac {a B}{2 x^2}+x (A c+b C)+b B \log (x)+\frac {1}{2} B c x^2+\frac {1}{3} c C x^3 \]

________________________________________________________________________________________

Rubi [A]  time = 0.05, antiderivative size = 63, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.038, Rules used = {1628} \begin {gather*} -\frac {a C+A b}{x}-\frac {a A}{3 x^3}-\frac {a B}{2 x^2}+x (A c+b C)+b B \log (x)+\frac {1}{2} B c x^2+\frac {1}{3} c C x^3 \end {gather*}

Antiderivative was successfully verified.

[In]

Int[((A + B*x + C*x^2)*(a + b*x^2 + c*x^4))/x^4,x]

[Out]

-(a*A)/(3*x^3) - (a*B)/(2*x^2) - (A*b + a*C)/x + (A*c + b*C)*x + (B*c*x^2)/2 + (c*C*x^3)/3 + b*B*Log[x]

Rule 1628

Int[(Pq_)*((d_.) + (e_.)*(x_))^(m_.)*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Int[ExpandIntegra
nd[(d + e*x)^m*Pq*(a + b*x + c*x^2)^p, x], x] /; FreeQ[{a, b, c, d, e, m}, x] && PolyQ[Pq, x] && IGtQ[p, -2]

Rubi steps

\begin {align*} \int \frac {\left (A+B x+C x^2\right ) \left (a+b x^2+c x^4\right )}{x^4} \, dx &=\int \left (A c \left (1+\frac {b C}{A c}\right )+\frac {a A}{x^4}+\frac {a B}{x^3}+\frac {A b+a C}{x^2}+\frac {b B}{x}+B c x+c C x^2\right ) \, dx\\ &=-\frac {a A}{3 x^3}-\frac {a B}{2 x^2}-\frac {A b+a C}{x}+(A c+b C) x+\frac {1}{2} B c x^2+\frac {1}{3} c C x^3+b B \log (x)\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.04, size = 60, normalized size = 0.95 \begin {gather*} -\frac {a (2 A+3 x (B+2 C x))}{6 x^3}-\frac {A b}{x}+A c x+b B \log (x)+b C x+\frac {1}{2} B c x^2+\frac {1}{3} c C x^3 \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[((A + B*x + C*x^2)*(a + b*x^2 + c*x^4))/x^4,x]

[Out]

-((A*b)/x) + A*c*x + b*C*x + (B*c*x^2)/2 + (c*C*x^3)/3 - (a*(2*A + 3*x*(B + 2*C*x)))/(6*x^3) + b*B*Log[x]

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (A+B x+C x^2\right ) \left (a+b x^2+c x^4\right )}{x^4} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

IntegrateAlgebraic[((A + B*x + C*x^2)*(a + b*x^2 + c*x^4))/x^4,x]

[Out]

IntegrateAlgebraic[((A + B*x + C*x^2)*(a + b*x^2 + c*x^4))/x^4, x]

________________________________________________________________________________________

fricas [A]  time = 1.26, size = 62, normalized size = 0.98 \begin {gather*} \frac {2 \, C c x^{6} + 3 \, B c x^{5} + 6 \, B b x^{3} \log \relax (x) + 6 \, {\left (C b + A c\right )} x^{4} - 3 \, B a x - 6 \, {\left (C a + A b\right )} x^{2} - 2 \, A a}{6 \, x^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((C*x^2+B*x+A)*(c*x^4+b*x^2+a)/x^4,x, algorithm="fricas")

[Out]

1/6*(2*C*c*x^6 + 3*B*c*x^5 + 6*B*b*x^3*log(x) + 6*(C*b + A*c)*x^4 - 3*B*a*x - 6*(C*a + A*b)*x^2 - 2*A*a)/x^3

________________________________________________________________________________________

giac [A]  time = 0.37, size = 56, normalized size = 0.89 \begin {gather*} \frac {1}{3} \, C c x^{3} + \frac {1}{2} \, B c x^{2} + C b x + A c x + B b \log \left ({\left | x \right |}\right ) - \frac {3 \, B a x + 6 \, {\left (C a + A b\right )} x^{2} + 2 \, A a}{6 \, x^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((C*x^2+B*x+A)*(c*x^4+b*x^2+a)/x^4,x, algorithm="giac")

[Out]

1/3*C*c*x^3 + 1/2*B*c*x^2 + C*b*x + A*c*x + B*b*log(abs(x)) - 1/6*(3*B*a*x + 6*(C*a + A*b)*x^2 + 2*A*a)/x^3

________________________________________________________________________________________

maple [A]  time = 0.01, size = 57, normalized size = 0.90 \begin {gather*} \frac {C c \,x^{3}}{3}+\frac {B c \,x^{2}}{2}+A c x +B b \ln \relax (x )+C b x -\frac {A b}{x}-\frac {C a}{x}-\frac {B a}{2 x^{2}}-\frac {A a}{3 x^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((C*x^2+B*x+A)*(c*x^4+b*x^2+a)/x^4,x)

[Out]

1/3*c*C*x^3+1/2*B*c*x^2+A*c*x+b*C*x+b*B*ln(x)-1/x*A*b-1/x*a*C-1/3*a*A/x^3-1/2*a*B/x^2

________________________________________________________________________________________

maxima [A]  time = 0.66, size = 56, normalized size = 0.89 \begin {gather*} \frac {1}{3} \, C c x^{3} + \frac {1}{2} \, B c x^{2} + B b \log \relax (x) + {\left (C b + A c\right )} x - \frac {3 \, B a x + 6 \, {\left (C a + A b\right )} x^{2} + 2 \, A a}{6 \, x^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((C*x^2+B*x+A)*(c*x^4+b*x^2+a)/x^4,x, algorithm="maxima")

[Out]

1/3*C*c*x^3 + 1/2*B*c*x^2 + B*b*log(x) + (C*b + A*c)*x - 1/6*(3*B*a*x + 6*(C*a + A*b)*x^2 + 2*A*a)/x^3

________________________________________________________________________________________

mupad [B]  time = 0.03, size = 55, normalized size = 0.87 \begin {gather*} x\,\left (A\,c+C\,b\right )-\frac {\left (A\,b+C\,a\right )\,x^2+\frac {B\,a\,x}{2}+\frac {A\,a}{3}}{x^3}+\frac {B\,c\,x^2}{2}+\frac {C\,c\,x^3}{3}+B\,b\,\ln \relax (x) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((A + B*x + C*x^2)*(a + b*x^2 + c*x^4))/x^4,x)

[Out]

x*(A*c + C*b) - ((A*a)/3 + x^2*(A*b + C*a) + (B*a*x)/2)/x^3 + (B*c*x^2)/2 + (C*c*x^3)/3 + B*b*log(x)

________________________________________________________________________________________

sympy [A]  time = 0.52, size = 63, normalized size = 1.00 \begin {gather*} B b \log {\relax (x )} + \frac {B c x^{2}}{2} + \frac {C c x^{3}}{3} + x \left (A c + C b\right ) + \frac {- 2 A a - 3 B a x + x^{2} \left (- 6 A b - 6 C a\right )}{6 x^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((C*x**2+B*x+A)*(c*x**4+b*x**2+a)/x**4,x)

[Out]

B*b*log(x) + B*c*x**2/2 + C*c*x**3/3 + x*(A*c + C*b) + (-2*A*a - 3*B*a*x + x**2*(-6*A*b - 6*C*a))/(6*x**3)

________________________________________________________________________________________